package com.yl.exception;

public class MyException extends RuntimeException {

	private Integer code;
	private String message;
	
	public MyException() {

	}

	public MyException(Integer code) {
		this.code = code;
	}

	public MyException(String message) {
		super(message);
		this.message = message;
	}

	public MyException(Integer code, String message) {
		super(message);
		this.message = message;
		this.code = code;
	}

	public Integer getCode() {
		return code;
	}

	public void setCode(Integer code) {
		this.code = code;
	}

	@Override
	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}

	
}
